<%@ page language="java" import="gt.service.*,java.util.*" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>添加客户信息</title>
</head>
<body>
<% 	
    //建立企业性质，企业类型，企业资信，开户银行，客户服务对象，
    //调用其中统计方法得到其中的值填入选项中
    //这是企业性质统计如下
	QyxzService qyxzService = new QyxzService();
	ArrayList<String> countQyxz=qyxzService.getCountQyxz();
	request.setAttribute("countQyxz", countQyxz);
	//这是企业类型统计
	QylxService qylxService = new QylxService();
	ArrayList<String> countQylx=qylxService.getCountQylx();
	request.setAttribute("countQylx", countQylx);
	//这是企业资信统计
	QyzxService qyzxService = new QyzxService();
	ArrayList<String> countQyzx=qyzxService.getCountQyzx();
	request.setAttribute("countQyzx", countQyzx);
	//这是银行类型统计
	BankService bankService = new BankService();
	ArrayList<String> countBank=bankService.getCountBank();
	request.setAttribute("countBank", countBank);
	//这是客户级别统计
	KhjbService khjbService = new KhjbService();
	ArrayList<String> countKhjb=khjbService.getCountKhjb();
	request.setAttribute("countKhjb", countKhjb);
    
%>
<img alt="" src="/ClientManager/images/28.png">
<hr>
<form action="<%=request.getContextPath()%>/addKhxx.do" method="post" target="right">
	<table  width="600px" border="1" cellspacing="0">
	<tr height="20px"><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">客户编号:</font></td><td valign="bottom"><input type="text" name="khxx_id"/></td><td align="right" valign="bottom"><font size="3">客户名称:</font></td><td valign="bottom"><input type="text" name="khxx_mc"/></td></tr>
	<tr height="20px"><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">企业性质:</font></td><td valign="bottom"><select name="khxx_qyxz"><option value="">----------请选择----------</option><c:forEach items="${countQyxz}" var="allQyxz" ><option value="${allQyxz}">${allQyxz}</option></c:forEach></select></td><td align="right" valign="bottom"><font size="3">企业类型:</font></td><td valign="bottom"><select name="khxx_qylx"><option value="">----------请选择----------</option><c:forEach items="${countQylx}" var="allQylx" ><option value="${allQylx}">${allQylx}</option></c:forEach></select></td></tr>
	<tr height="20px"><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">企业资信:</font></td><td valign="bottom"><select name="khxx_qyzx"><option value="">----------请选择----------</option><c:forEach items="${countQyzx}" var="allQyzx" ><option value="${allQyzx}">${allQyzx}</option></c:forEach></select></td><td align="right" valign="bottom"><font size="3">企业地址:</font></td><td valign="bottom"><input type="text" name="khxx_qydz"/></td></tr>
	<tr height="20px"><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">所属省份:</font></td><td valign="bottom"><input type="text" name="khxx_szsf"/></td><td align="right" valign="bottom"><font size="3">公司邮编:</font></td><td valign="bottom"><input type="text" name="khxx_gsyb"/></td></tr>
	<tr height="20px"><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">所属城市:</font></td><td valign="bottom"><input type="text" name="khxx_szcs"/></td><td align="right" valign="bottom"><font size="3">法人代表:</font></td><td valign="bottom"><input type="text" name="khxx_frdb"/></td></tr>
	<tr height="20px"><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">纳税号:</font></td><td valign="bottom"><input type="text" name="khxx_nsh"/></td><td align="right" valign="bottom"><font size="3">开户银行:</font></td><td valign="bottom"><select name="khxx_khyh"><option value="">----------请选择----------</option><c:forEach items="${countBank}" var="allBank" ><option value="${allBank}">${allBank}</option></c:forEach></select></td></tr>
	<tr height="20px"><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">开户银行帐号:</font></td><td valign="bottom"><input type="text" name="khxx_yhzh"/></td><td align="right" valign="bottom"><font size="3">公司网址:</font></td><td valign="bottom"><input type="text" name="khxx_gswz"/></td></tr>
	<tr height="20px"><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">客户IC卡号:</font></td><td valign="bottom"><input type="text" name="khxx_ICcard"/></td><td align="right" valign="bottom"><font size="3">公司电话:</font></td><td valign="bottom"><input type="text" name="khxx_gsdh"/></td></tr>
	<tr height="20px"><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">公司传真:</font></td><td valign="bottom"><input type="text" name="khxx_gscz"/></td><td align="right" valign="bottom"><font size="3">主要联系人:</font></td><td valign="bottom"><input type="text" name="khxx_lxr"/></td></tr>
	<tr height="20px"><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">联系人电话:</font></td><td valign="bottom"><input type="text" name="khxx_lxrdh"/></td><td align="right" valign="bottom"><font size="3">客户级别:</font></td><td valign="bottom"><select name="khxx_khjb"><option value="">----------请选择----------</option><c:forEach items="${countKhjb}" var="allKhjb" ><option value="${allKhjb}">${allKhjb}</option></c:forEach></select></td></tr>
	<tr height="20px"><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">备注:</font></td><td valign="bottom" colspan="3"><input type="text" name="khxx_bz"/></td></tr>
	
	<tr><td></td><td valign="top" colspan="3"><input style="font-size: 15px" type="submit" value="提交">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input style="font-size: 15px" type="reset" value="重置"></td></tr>
	

 </table>
</form>
</body>
</html>